package com.ruoyi.shop.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 进货对象 purchase
 * 
 * @author ruoyi
 * @date 2024-06-06
 */
public class Purchase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 进货id */
    private Long purchaseId;

    @Excel(name = "商品名称")
    private String foodName;
    @Excel(name = "供应商名称")
    private String supplierName;
    /** 供应商 */
    @Excel(name = "供应商")
    private Long supplier_id;
    @Excel(name = "单价")
    private BigDecimal foodPrice;
    /** 商品 */
    @Excel(name = "商品")
    private Long foodId;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private Long payType;

    /** 进货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "进货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseTime;

    /** 操作人 */
    @Excel(name = "操作人")
    private String operator;

    /** 进货数量 */
    @Excel(name = "进货数量")
    private Long quantity;

    /** 商品单价 */
    @Excel(name = "商品单价")
    private BigDecimal unitPrice;

    /** 进货总价 */
    @Excel(name = "进货总价")
    private BigDecimal totalPrice;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    public void setPurchaseId(Long purchaseId) 
    {
        this.purchaseId = purchaseId;
    }

    public Long getPurchaseId() 
    {
        return purchaseId;
    }
    public void setsupplier_id(Long supplier_id)
    {
        this.supplier_id = supplier_id;
    }

    public Long getsupplier_id() 
    {
        return supplier_id;
    }
    public void setFoodId(Long foodId) 
    {
        this.foodId = foodId;
    }

    public Long getFoodId() 
    {
        return foodId;
    }
    public void setPayType(Long payType) 
    {
        this.payType = payType;
    }

    public Long getPayType() 
    {
        return payType;
    }
    public void setPurchaseTime(Date purchaseTime) 
    {
        this.purchaseTime = purchaseTime;
    }

    public Date getPurchaseTime() 
    {
        return purchaseTime;
    }
    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setUnitPrice(BigDecimal unitPrice) 
    {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getUnitPrice() 
    {
        return unitPrice;
    }
    public void setTotalPrice(BigDecimal totalPrice) 
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice() 
    {
        return totalPrice;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("purchaseId", getPurchaseId())
            .append("supplier_id", getsupplier_id())
            .append("foodId", getFoodId())
            .append("payType", getPayType())
            .append("purchaseTime", getPurchaseTime())
            .append("operator", getOperator())
            .append("quantity", getQuantity())
            .append("unitPrice", getUnitPrice())
            .append("totalPrice", getTotalPrice())
            .append("remarks", getRemarks())
            .toString();
    }

    public String getFoodName() {
        return foodName;
    }

    public void setFoodName(String foodName) {
        this.foodName = foodName;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public BigDecimal getFoodPrice() {
        return foodPrice;
    }

    public void setFoodPrice(BigDecimal foodPrice) {
        this.foodPrice = foodPrice;
    }
}
